package com.xu.wemall.entry;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@TableName(value = "players")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Player implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty("主键")
    private Long id;

    @ExcelProperty("英文姓名")
    private String enName;

    @ExcelProperty("中文姓名")
    private String chName;

    @ExcelProperty("国籍")
    private String nation;

    @ExcelProperty("年龄")
    private Integer age;

    @ExcelProperty("世界排名")
    private Integer ranking;

    @ExcelProperty("排名赛数量")
    private Integer titles;

    @ExcelProperty("三大赛数量")
    private Integer threeCrowns;
}